﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MShop.Core.Domain;

namespace MShop.Core.DataAccess
{
    public interface IDictDao:ICommonDao<Dictionary>
    {
        IQueryable<Dictionary> GetByTypeId(int typeId);

        IList<System.Web.Mvc.SelectListItem> ToSelectListItem(string typeid);

        IList<System.Web.Mvc.SelectListItem> ToSelectListItem(int typeid, object selectedValue);

        string GetKeyName(int typeid, int value);
    }
}